<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:99:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public/themes/admin_simpleboot3/admin\api_word\add.html";i:1757382797;s:94:"E:\www\sungmu.net\crm.manage.dev.sungmu.net\public\themes\admin_simpleboot3\public\header.html";i:1753343380;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/<?php echo cmf_get_admin_style(); ?>/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: '<?php echo \think\Request::instance()->module(); ?>'/*当前应用名*/
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip({
                container:'body',
                html:true,
            });
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    <?php if(APP_DEBUG): ?>
        <style>
            #think_page_trace_open {
                z-index: 9999;
            }
        </style>
    <?php endif; ?>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="<?php echo url('index'); ?>">列表</a></li>
        <li class="active"><a href="<?php echo url('add'); ?>">添加</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="<?php echo url('add'); ?>">
        <div class="row">
            <div class="col-md-9">
                <table class="table table-bordered">
                    <tr>
                        <th width="20%">类型<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="id_type" id="id_type" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <?php if(is_array($detail['idTypeArr']) || $detail['idTypeArr'] instanceof \think\Collection || $detail['idTypeArr'] instanceof \think\Paginator): $i = 0; $__LIST__ = $detail['idTypeArr'];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                    <option value="<?php echo $key; ?>"><?php echo $vo; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">规则<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <input class="form-control" type="text" name="word_no" id="word_no" required value="" placeholder="身份证护照前几位数、城市名"/>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">状态<span class="form-required">&nbsp;*&nbsp;</span></th>
                        <td>
                            <select class="form-control valid" name="status" id="status" aria-invalid="false" required>
                                <option value="">-请选择-</option>
                                <?php if(is_array($detail['wordStatusArr']) || $detail['wordStatusArr'] instanceof \think\Collection || $detail['wordStatusArr'] instanceof \think\Paginator): if( count($detail['wordStatusArr'])==0 ) : echo "" ;else: foreach($detail['wordStatusArr'] as $k=>$val): ?>
                                    <option value="<?php echo $k; ?>"><?php echo $val; ?></option>
                                <?php endforeach; endif; else: echo "" ;endif; ?>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th width="20%">备注<span class="form-required"></span></th>
                        <td>
                            <textarea class="form-control" name="spot_desc" id="project_desc" placeholder="请填写备注信息" style="width:100%;height:200px;resize:none;"></textarea>
                        </td>
                    </tr>
                </table>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-primary js-ajax-submit"><?php echo lang('ADD'); ?></button>
                        <a class="btn btn-default" href="<?php echo url('index'); ?>"><?php echo lang('BACK'); ?></a>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>
<script src="/static/js/admin.js"></script>
</body>
</html>